package sartoservicesync.entities.presta.wrapper;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import sartoservicesync.entities.presta.PrestaCategory;
import sartoservicesync.entities.presta.PrestaEntity;

@XmlRootElement(name = "prestashop")
@XmlAccessorType(XmlAccessType.FIELD)
public class PrestaCategoriesWrapper extends PrestaMultiObjectWrapper {
	
	
	@XmlElementWrapper
	@XmlElement(name = "category")
	List<PrestaCategory> categories = new ArrayList<PrestaCategory>();

	public List<PrestaCategory> getCategories() {
		return categories;
	}

	public void setCategories(List<PrestaCategory> categories) {
		this.categories = categories;
	}

	@Override
	public List<? extends PrestaEntity> getResourceList() {
		return getCategories();
	}
	
	
	
}
